|
Groovy JDK |
Method Summary | |
---|---|
Process
|
execute()
Executes the command specified by the given String array.
|
Process
|
execute(String[] envp, File dir)
Executes the command specified by the String array given in the first parameter,
with the environment defined by envp and under the working directory dir .
|
Process
|
execute(List envp, File dir)
Executes the command specified by the String array given in the first parameter,
with the environment defined by envp and under the working directory dir .
|
Method Detail |
---|
public Process execute()
String
array.
The first item in the array is the command; the others are the parameters.
For more control over Process construction you can use
java.lang.ProcessBuilder
(JDK 1.5+).
public Process execute(String[] envp, File dir)
String
array given in the first parameter,
with the environment defined by envp
and under the working directory dir
.
The first item in the array is the command; the others are the parameters.
For more control over Process construction you can use
java.lang.ProcessBuilder
(JDK 1.5+).
envp
- an array of Strings, each member of which
has environment variable settings in the format
name=value, or
null if the subprocess should inherit
the environment of the current process..dir
- the working directory of the subprocess, or
null if the subprocess should inherit
the working directory of the current process..public Process execute(List envp, File dir)
String
array given in the first parameter,
with the environment defined by envp
and under the working directory dir
.
The first item in the array is the command; the others are the parameters.
For more control over Process construction you can use
java.lang.ProcessBuilder
(JDK 1.5+).
envp
- a List of Objects (converted to Strings using toString), each member of which
has environment variable settings in the format
name=value, or
null if the subprocess should inherit
the environment of the current process..dir
- the working directory of the subprocess, or
null if the subprocess should inherit
the working directory of the current process..
|
Groovy JDK |